package com.lgrglw.search.ke.mapping;

import org.compass.annotations.Index;
import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;
import org.compass.annotations.SearchableProperty;
import org.compass.annotations.Store;

/**
 * 知识整体搜索对象
 * 
 * @author liwei
 * 
 */
@Searchable
public class KnowledgeSearchEntity {

	public final static String alias = "knowledgesearchentity";

	/**
	 * 索引主键
	 */
	@SearchableId
	private String id;
	/**
	 * 所属区域
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String area;
	/**
	 * 点击率
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String visitCount = "0";
	/**
	 * 文档ID
	 */
	@SearchableProperty(index = Index.NO, store = Store.YES)
	private String docId;
	/**
	 * 文档名称
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES, boost = 5.0f)
	private String docName;
	/**
	 * 文档所属的目录名称
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES, boost = 4.0f)
	private String docDirectoryName;
	/**
	 * 文档所属的目录ID序列
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String docDirectoryIds;
	/**
	 * 文档创建时间,不分词但是建立索引，是为了排序使用
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String docCreateTime;
	/**
	 * 文档更新时间
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String docUpdateTime;
	/**
	 * 文档状态
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String extStatu;
	/**
	 * 文档的其他状态，包括主推与已过期等
	 */
	@SearchableProperty(index = Index.NO, store = Store.YES)
	private String otherStatu;
	/**
	 * 所属的场景导航的目录名称序列
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String navigatorPath;
	/**
	 * 所属的场景导航的目录ID序列
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String navigatorIdPath;
	/**
	 * 知识的内容
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String content;
	/**
	 * 知识的附件内容
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String accessoryConent;
	/**
	 * 知识的关键字
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES, boost = 8.0f)
	private String keywords;
	/**
	 * 知识所具有的所有章节的ID串
	 */
	@SearchableProperty(index = Index.NO, store = Store.YES)
	private String menuId;
	/**
	 * 知识所具有的所有章节的标题串
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String menuTitle;
	/**
	 * 知识所属的场景导航的跟目录ID
	 */
	@SearchableProperty(index = Index.NO, store = Store.YES)
	private String navigatorRootId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getVisitCount() {
		return visitCount;
	}

	public void setVisitCount(String visitCount) {
		this.visitCount = visitCount;
	}

	public String getDocId() {
		return docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
	}

	public String getDocName() {
		return docName;
	}

	public void setDocName(String docName) {
		this.docName = docName;
	}

	public String getDocDirectoryName() {
		return docDirectoryName;
	}

	public void setDocDirectoryName(String docDirectoryName) {
		this.docDirectoryName = docDirectoryName;
	}

	public String getDocDirectoryIds() {
		return docDirectoryIds;
	}

	public void setDocDirectoryIds(String docDirectoryIds) {
		this.docDirectoryIds = docDirectoryIds;
	}

	public String getDocCreateTime() {
		return docCreateTime;
	}

	public void setDocCreateTime(String docCreateTime) {
		this.docCreateTime = docCreateTime;
	}

	public String getDocUpdateTime() {
		return docUpdateTime;
	}

	public void setDocUpdateTime(String docUpdateTime) {
		this.docUpdateTime = docUpdateTime;
	}

	public String getExtStatu() {
		return extStatu;
	}

	public void setExtStatu(String extStatu) {
		this.extStatu = extStatu;
	}

	public String getOtherStatu() {
		return otherStatu;
	}

	public void setOtherStatu(String otherStatu) {
		this.otherStatu = otherStatu;
	}

	public String getNavigatorPath() {
		return navigatorPath;
	}

	public void setNavigatorPath(String navigatorPath) {
		this.navigatorPath = navigatorPath;
	}

	public String getNavigatorIdPath() {
		return navigatorIdPath;
	}

	public void setNavigatorIdPath(String navigatorIdPath) {
		this.navigatorIdPath = navigatorIdPath;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAccessoryConent() {
		return accessoryConent;
	}

	public void setAccessoryConent(String accessoryConent) {
		this.accessoryConent = accessoryConent;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getMenuTitle() {
		return menuTitle;
	}

	public void setMenuTitle(String menuTitle) {
		this.menuTitle = menuTitle;
	}

	public String getNavigatorRootId() {
		return navigatorRootId;
	}

	public void setNavigatorRootId(String navigatorRootId) {
		this.navigatorRootId = navigatorRootId;
	}

}
